﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;

namespace Tank.Resources
{
    public class ImageResources
    {
        #region 地图资源
        /// <summary>
        /// 砖墙
        /// </summary>
        public static Image wallImage = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\wall.gif").GetThumbnailImage(Data.GridSize, Data.GridSize, () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 金刚墙
        /// </summary>
        public static Image steelImage = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\steel.gif").GetThumbnailImage(Data.GridSize, Data.GridSize, () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 草
        /// </summary>
        public static Image grassImage = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\grass.png").GetThumbnailImage(Data.GridSize, Data.GridSize, () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 水
        /// </summary>
        public static Image waterImage = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\water.gif").GetThumbnailImage(Data.GridSize, Data.GridSize, () => { return false; }, IntPtr.Zero);

        #endregion

        #region 玩家资源
        /// <summary>
        /// 玩家1 上
        /// </summary>
        public static Image playerOneUp = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p1tankU.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 玩家1 下
        /// </summary>
        public static Image playerOneDown = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p1tankD.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 玩家1 左
        /// </summary>
        public static Image playerOneLeft = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p1tankL.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 玩家1 右
        /// </summary>
        public static Image playerOneRight = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p1tankR.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);

        /// <summary>
        /// 玩家2 上
        /// </summary>
        public static Image playerTwoUp = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p2tankU.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 玩家2 下
        /// </summary>
        public static Image playerTwoDown = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p2tankD.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 玩家2 左
        /// </summary>
        public static Image playerTwoLeft = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p2tankL.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// 玩家2 右
        /// </summary>
        public static Image playerTwoRight = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\p2tankR.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        #endregion

        #region NPC资源
        /// <summary>
        /// NPC1 上
        /// </summary>
        public static Image NPCOneUp = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy1U.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC1 下
        /// </summary>
        public static Image NPCOneDown = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy1D.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC1 左
        /// </summary>
        public static Image NPCOneLeft = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy1L.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC1 右
        /// </summary>
        public static Image NPCOneRight = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy1R.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);

        /// <summary>
        /// NPC2 上
        /// </summary>
        public static Image NPCTwoUp = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy2U.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC2 下
        /// </summary>
        public static Image NPCTwoDown = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy2D.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC2 左
        /// </summary>
        public static Image NPCTwoLeft = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy2L.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC2 右
        /// </summary>
        public static Image NPCTwoRight = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy2R.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);

        /// <summary>
        /// NPC3 上
        /// </summary>
        public static Image NPCThreeUp = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy3U.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC3 下
        /// </summary>
        public static Image NPCThreeDown = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy3D.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC3 左
        /// </summary>
        public static Image NPCThreeLeft = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy3L.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        /// <summary>
        /// NPC3 右
        /// </summary>
        public static Image NPCThreeRight = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemy3R.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge), Convert.ToInt32(Data.GridSize * Data.TankEnlarge), () => { return false; }, IntPtr.Zero);
        #endregion

        #region 子弹资源
        /// <summary>
        /// NPC子弹
        /// </summary>
        public static Image NPCBullet = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\enemymissile.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge / 4), Convert.ToInt32(Data.GridSize * Data.TankEnlarge / 4), () => { return false; }, IntPtr.Zero);

        /// <summary>
        /// 玩家子弹
        /// </summary>
        public static Image PlayBullet = Image.FromFile(Directory.GetCurrentDirectory() + @"\Image\tankmissile.gif").GetThumbnailImage(Convert.ToInt32(Data.GridSize * Data.TankEnlarge / 4), Convert.ToInt32(Data.GridSize * Data.TankEnlarge / 4), () => { return false; }, IntPtr.Zero);
        #endregion
    }
}
